a11y: Add a display to GtkATContext
authorEmmanuele Bassi <ebassi@gnome.org>
Tue, 29 Sep 2020 17:40:44 +0000 (18:40 +0100)
committerEmmanuele Bassi <ebassi@gnome.org>
Mon, 12 Oct 2020 15:19:32 +0000 (16:19 +0100)
commit8c18480092868bdd5f5460cbd3e74504b2879b88
tree9d4c7041e73e8487e64518fb8dd31f25a0a72557
parent8f19bb0832189cd39f1e0c06ae279e1893a6ab18
a11y: Add a display to GtkATContext

Since we need to check at run time what kind of AT context to use, we
need a hook into the whole GDK backend machinery. The display connection
seems to be the best choice, in this case, as it allows us to determine
whether we're running on an X11 or Wayland system, and thus whether we
should create a GtkAtSpiContext.

This requires some surgery to fix the GtkATContext creation function, in
order to include a GdkDisplay instance.
gtk/a11y/gtkatspicontext.c
gtk/a11y/gtkatspicontextprivate.h
gtk/gtkatcontext.c
gtk/gtkatcontext.h
gtk/gtkatcontextprivate.h
gtk/gtkwidget.c
testsuite/a11y/accessible.c